package com.ws.myweberp.dao;

import java.sql.Connection;

import com.ws.myweberp.bean.UserBean;

public class LoginDAO {

	public UserBean login(String user, String password){
		
		UserBean systemUser = null;
		DAOConnection conn = (DAOConnection) DAOFactory.getDAO(1);
		try{
			conn.createConnection();
			
		}catch(Exception e){
			return null;
		}finally{
			conn.closeConnection();
		}
		return systemUser;
	}
	
}
